package oxi.bigu.business;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import oxi.bigu.persistence.CaronadoDao;

@Component
public class CaronadoController {
	
	@Autowired
	private CaronadoDao caronadoDao;
	
	public List<Caronado> searchCaronados(){
		return caronadoDao.selectCaronado();
	}

	public void createCaronado(Caronado caronado) {
		caronadoDao.insertCaronado(caronado);
	}

}
